import type { App } from 'vue'
import EnterpriseModal from './Modal/EnterpriseModal.vue'
import StarRating from './StarRating/StarRating.vue'

const components = {
    EnterpriseModal,
    StarRating
}

// 批量组件注册
const install = (app: App) => {
    Object.keys(components).forEach(key => {
        app.component(key, components[key as keyof typeof components])
    })
}

// 支持单独导入
export {
    EnterpriseModal,
    StarRating
}

// 支持全量导入
export default {
    install,
    ...components
} 